﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.ErrorCode
{
    /// <summary>
    /// API封装基类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiResult<T> where T : class
    {
        /// <summary>
        /// 消息
        /// </summary>
        public string Msg { get; set; }

        /// <summary>
        /// 返回码
        /// </summary>
        public ApiEnums Code { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public T? Data { get; set; }
    }
}
